package cn.com.taiji.pos.service.impl;

import cn.com.taiji.pos.entity.SystemProject;
import cn.com.taiji.pos.mapper.SystemProjectMapper;
import cn.com.taiji.pos.service.ISystemProjectService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.dreamyoung.mprelation.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 项目 服务实现类
 * </p>
 *
 * @author
 * @since 2022-01-03
 */
@Service
public class SystemProjectServiceImpl extends ServiceImpl<SystemProjectMapper, SystemProject> implements ISystemProjectService {

    @Override
    public SystemProject findByCode(String projectCode) {
        return this.getOne(new QueryWrapper<SystemProject>().eq("CODE", projectCode), false);
    }
}
